import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import ElSelectTree from 'el-select-tree'
Vue.use(ElSelectTree)
import "echarts";
import ECharts from 'vue-echarts'
Vue.component('VCharts', ECharts)
// 全局过滤
import './filters';
// 引入进度条样式
import 'nprogress/nprogress.css';
import "./assets/css/main.scss";
// svg
import "./assets/icon";

// 引入全局组件
import './components/index.js';
//引入自定义滚动条
import HappyScroll from 'vue-happy-scroll';
import 'vue-happy-scroll/docs/happy-scroll.css';

import { dateFormat } from '@/utils/BaseUtil';

Vue.prototype.$dateFormat = dateFormat;
Vue.prototype.$host = process.env.VUE_APP_IMAHE_HOST;

Vue.config.productionTip = false;

Vue.use(HappyScroll);

Vue.use(ElementUI, { size: 'small' });

// 全局路由守卫
import './router/permission';
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
